﻿{
		  "Folder"		: ""
		, "Debug"		: false//调试模式
		, "LogFile"		: "f:\\log.txt"//日志文件路径。
		, "Company"		: "荆门泽优软件有限公司"
		, "Version"		: "1,2,72,60650"
		, "License2"	: ""//
		, "Cookie"		: ""//
		, "ThreadCount"	: 3//并发数,<=5
      , "ThreadBlock"	: 3//文件块线程数,<=10
      , "ThreadChild"	: 3//子文件线程数,<=10
      , "ThreadQuery"	: 5//查询线程,3~10
      , "SpeedLimit"  : 0//限速，以字节为单位。0表示不限制
		, "DataBase"	: false//启用数据库支持
      , "UrlEncode"	: true//url编码配置，默认开启
      , "TinySize"    : 1048576//小文件尺寸（大于此文件尺寸时将启用多线程下载）
		, "FilePart"	: 1048576//文件块大小，更新进度时使用，计算器：http://www.beesky.com/newsite/bit_byte.htm
        , "ProcSaveTm"  : 60//定时保存进度。单位：秒，默认：1分钟
        , "Proxy"       : {url: ""/**http://192.168.0.1:8888 */,pwd: ""/**admin:123456 */}//代理
        , "AutoConnect" : {opened:false,time:3000}//启动错误自动重传
        , "UrlCreate"   : "http://localhost:90/db/d_create.aspx"
        , "UrlDel"      : "http://localhost:90/db/d_del.aspx"
        , "UrlList"     : "http://localhost:90/db/d_list.aspx"
        , "UrlUpdate"   : "http://localhost:90/db/d_update.aspx"
        , "ie": {
              part: { clsid: "6528602B-7DF7-445A-8BA0-F6F996472569", name: "Xproer.DownloaderPartition" }
            , path: "http://res2.ncmem.com/download/down2/pack/2.4.22/down2.cab"
        }
        , "ie64": {
            part: { clsid: "19799DD1-7357-49de-AE5D-E7A010A3172C", name: "Xproer.DownloaderPartition64" }
            , path: "http://res2.ncmem.com/download/down2/pack/2.4.22/down64.cab"
        }
        , firefox: { name: "", type: "application/npHttpDown", path: "http://res2.ncmem.com/download/down2/pack/2.4.22/down2.xpi" }
        , chrome: { name: "npHttpDown", type: "application/npHttpDown", path: "http://res2.ncmem.com/download/down2/pack/2.4.22/down2.crx" }
	    //Chrome 45
        , chrome45: { name: "com.xproer.down2", path: "http://res2.ncmem.com/download/down2/pack/2.4.22/down2.crx" }
        , exe: { path: "http://res2.ncmem.com/download/down2/pack/2.4.22/down2.exe" }
        , mac: { path: "http://res2.ncmem.com/download/down2/pack/2.4.22/down2.pkg" }
        , linux: { path: "https://ncmem2.oss-cn-shanghai.aliyuncs.com/download/down2/linux/1.0.5/down2.deb" }
        , arm64: { path: "http://res2.ncmem.com/download/down2/arm64/1.0.4/com.ncmem.down2_2020.12.3-1_arm64.deb" }
        , mips64: { path: "http://res2.ncmem.com/download/down2/mips64/1.0.1/com.ncmem.down2_2020.12.3-1_mips64el.deb" }
        , edge: {protocol:"down2",port:9700,visible:false}
        , "Fields": { "uname": "test", "upass": "test", "uid": "0", "fid": "0" }
        , errCode: {
            "0": "发送数据错误"
            , "1": "接收数据错误"
            , "2": "访问本地文件错误"
            , "3": "域名未授权"
            , "4": "文件大小超过限制"
            , "5": "地址为空"
            , "6": "配置文件不存在"
            , "7": "本地目录不存在"
            , "8": "查询文件信息失败"
            , "9": "子文件大小超过限制"
            , "10": "子文件数量超过限制"
            , "11": "连接服务器失败"
            , "12": "url地址错误"
            , "13": "服务器错误"
        }
        , state: {
            Ready: 0,
            Posting: 1,
            Stop: 2,
            Error: 3,
            GetNewID: 4,
            Complete: 5,
            WaitContinueUpload: 6,
            None: 7,
            Waiting: 8
        }
        , ui: {
            path:'span[name="path"]',
            file: 'div[name="file"]',
            panel: 'div[name="down_panel"]',
            list: 'div[name="down_body"]',
            header: 'div[name="down_header"]',
            toolbar: 'div[name="down_toolbar"]',
            footer: 'div[name="down_footer"]',
            btn: {
                setup: 'span[name="btnSetup"]',
                setFolder: "span[name='btnSetFolder']",
                clear: 'span[name="btnClear"]'
            },
          ele: {
            "ico": {
              "file": "img[name=\"file\"]",
              "fd": "img[name=\"folder\"]"
            },
            "name": "div[name=\"name\"]",
            "size": "div[name=\"size\"]",
            "process": "div[name=\"process\"]",
            "percent": "div[name=\"percent\"]",
            "msg": "div[name=\"msg\"]",
            "btn": {
              "cancel": "span[name=\"cancel\"]",
              "stop": "span[name=\"stop\"]",
              "down": "span[name=\"down\"]",
              "del": "span[name=\"del\"]",
              "open": "span[name=\"open\"]",
              "openFd": "span[name=\"open-fd\"]"
            }
          }
        }
	}